package routers

import (
	"github.com/gin-gonic/gin"
	"shop-admin/controller"
)

func privateProduct(router *gin.RouterGroup) {
	api := &controller.ProductController{}
	product := router.Group("/prod/product")
	{
		product.GET("/page", api.Page)         //分页获取商品信息
		product.GET("/info/:prodId", api.Info) //获取信息
		product.POST("", api.Save)             //保存
		product.PUT("", api.Update)            //修改
		product.DELETE("", api.Delete)         //删除
	}
}
